package com.dbappsecurity.bifrost.di.component;

import android.content.SharedPreferences;
import com.dbappsecurity.bifrost.BifrostApp;
import com.dbappsecurity.bifrost.di.module.AppModule;
import com.dbappsecurity.network.Thunder;
import dagger.BindsInstance;
import dagger.Component;

import javax.inject.Singleton;

/**
 * Created by Arirus on 2018/5/11.
 */


@Singleton
@Component(modules = AppModule.class)
public interface AppComponent {

    Thunder apiClient();

    SharedPreferences getPrefrences();

    BifrostApp getApp();

    @Component.Builder
    interface Builder {
        @BindsInstance
        AppComponent.Builder app(BifrostApp app);

        AppComponent build();
    }

}
